package com.qzsoft.zhjd.cement.modules.cementmatch.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.cement.modules.cementmatch.dto.CementMatchDetailsDto;
import com.qzsoft.zhjd.cement.modules.cementmatch.dto.CementMatchListDto;
import com.qzsoft.zhjd.cement.modules.cementmatch.entity.CementMatchEntity;

/**
 * @ClassName CementMatchMapper
 * @Description 水稳配比数据库接口
 * @author linhuawei
 * @since 2022-04-28
 */
@Mapper
public interface CementMatchMapper extends BaseMapper<CementMatchEntity> {

    /**
     * @Title queryDto
     * @Description 获取分页数据
     * @param page   分页条件
     * @param params 查询条件
     * @return 分页数据
     */
    public IPage<CementMatchListDto> queryDto(IPage<CementMatchListDto> page,
            @Param("params") Map<String, Object> params);

    /**
     * @Title getDetails
     * @Description 获取详情
     * @param id 数据主键
     * @return 详情
     */
    public CementMatchDetailsDto getDetails(@Param("id") String id);

}
